﻿
<template>
    <div>
        <!-- 添加按钮 -->
        <!-- 按条件选择 -->
        <p v-text="tian.tztitile" style="    text-align: center; height: 50PX; line-height: 50PX; font-size: 24PX; FONT-FAMILY: CURSIVE; FONT-WEIGHT: 700;margin-top:40PX;"></p>
        <p style="    text-align: right;font-size: 12px; margin-right: 280px;">起止时间<span v-text="tian.sdate"></span>到<span v-text="tian.edate"></span> </p>
        <div class="default-tab ft14  hover-btn" style="overflow-x: inherit;padding:30PX 40PX;" v-html="tian.tzcontent">

        </div>
        <div style="text-align:center" v-if="ista=='Y'">
            <button type="button" class="btn btn-info btn-lg" @click="Add()"><i class="iconfont icon-jiahao ft12 mr5"></i>发起提案</button>
        </div>
        <!-- 表格 -->



    </div>
</template>

<script>
    module.exports = {
        props: ['pdata'],
        components: {
            'base-table': httpVueLoader('/ViewV5/Base/Vue/Table.vue')
        },
        data: function () {
            return {
                tian: {},
                ista: "N"

            }
        },
        methods: {
            Add: function () {
                top.ComFunJS.winviewform("/ViewV5/AppPage/FORMBI/FormAdd.html?pdid=257&vtype=2", "发起提案", "1000", "", function () {

                });
            },
            InitWigetData: function () {
                var pro = this;
                $.getJSON('/api/Bll/ExeAction?Action=TAXT_GETTADATA', { P2: "1" }, function (resultData) {
                    if (resultData.Result.length > 0) {
                        pro.tian = resultData.Result[0];
                        pro.tian.sdate = pro.tian.sdate.substring(0, 10);
                        pro.tian.edate = pro.tian.edate.substring(0, 10);
                        pro.ista = resultData.Result1;
                        ComFunJS.setCookie("tztitile", pro.tian.tztitile);

                    }
                })

            },
        },
        mounted: function () {
            var pro = this;
            pro.$nextTick(function () {
                pro.InitWigetData();
            })

        },
        watch: {

        }
    };
</script>